package com.atqinke.designpattern.behavioraltype.responsibility;

/**
 * @BelongsProject: BasicConnection
 * @BelongsPackage: com.atqinke.designpattern.behavioraltype.responsibility
 * @Author: NieHk
 * @CreateTime: 2022-08-29  00:01
 * @Description:
 * @Version: 1.0
 */
public class test {
    public static void main(String[] args) {
        //请假条来一张
        LeaveRequest leave = new LeaveRequest("小花", 66, "身体不适");

        //各位领导
        GroupLeader groupLeader = new GroupLeader(new Manager(new GeneralManager()));

        //提交申请
        groupLeader.submit(leave);

        Integer NUM_MAX = Integer.MAX_VALUE;
        double d = Double.POSITIVE_INFINITY;
        int a = (int) Double.POSITIVE_INFINITY;
        System.out.println(NUM_MAX);
        System.out.println(a);
        System.out.println(d>a);
    }
}
